#include "globaldata.h"

GlobalData::GlobalData(QObject *parent)
	: QObject(parent)
	, m_nCurrentAnimationFrame(0)
{

}

int GlobalData::currentAnimationFrame() const
{
	return m_nCurrentAnimationFrame;
}

void GlobalData::setCurrentAnimationFrame( int value )
{
	if(m_nCurrentAnimationFrame != value)
	{
		m_nCurrentAnimationFrame = value;
		emit currentAnimationFrameChanged(m_nCurrentAnimationFrame);
	}
}
